package net.slteam.base;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.HashMap;
import java.util.Map;


@SuppressWarnings("unused")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BaseBean extends Object implements IBaseBean {

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) // jackson
    @JSONField(serialize = false) // fastjson
    private transient Map<String, Object> params;

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }


}
